Skip to main content

Valet Parking Garage Design


enum Size {
small, medium, large...
}

type Car struct {
licPlate
Size
}

type ParkingSpace struct {
}

func Park(car Car) Ticket {


}

type Garage struct {
func to park
func to retrieve
// remember to use receiver properly
hashmaps for cars to spaces, spaces to cars, sizes etc
// greedy approach fro putting cars in spaces
}